]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
modalDialog: Remove timestamp parameter from open()
authorFlorian Müllner <fmuellner@gnome.org>
Fri, 16 Feb 2024 23:07:36 +0000 (00:07 +0100)
committerMarge Bot <marge-bot@gnome.org>
Sat, 17 Feb 2024 10:42:46 +0000 (10:42 +0000)
It is now unused.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3195>

js/ui/components/networkAgent.js
js/ui/components/polkitAgent.js
js/ui/endSessionDialog.js
js/ui/extensionDownloader.js
js/ui/modalDialog.js

index 9a8e98d341fe07f5303e53dd36300fe8058fa43d..ab9b86083cc14377b836f41ca9927918f921a5b2 100644 (file)
@@ -648,7 +648,7 @@ class VPNRequestHandler extends Signals.EventEmitter {
         if (contentOverride && contentOverride.secrets.length) {
             // Only show the dialog if we actually have something to ask
             this._shellDialog = new NetworkSecretDialog(this._agent, this._requestId, this._connection, 'vpn', [], this._flags, contentOverride);
-            this._shellDialog.open(global.get_current_time());
+            this._shellDialog.open();
         } else {
             this._agent.respond(this._requestId, Shell.NetworkAgentResponse.CONFIRMED);
             this.destroy();
@@ -818,7 +818,7 @@ class NetworkAgent {
             delete this._dialogs[requestId];
         });
         this._dialogs[requestId] = dialog;
-        dialog.open(global.get_current_time());
+        dialog.open();
     }
 
     _cancelRequest(agent, requestId) {
index 18e817e2205355144d34073604c86d8e5f5884d7..34cd34c0c6111aaaa9e90f873abc41034ed6d354 100644 (file)
@@ -193,7 +193,7 @@ const AuthenticationDialog = GObject.registerClass({
     _ensureOpen() {
         // NOTE: ModalDialog.open() is safe to call if the dialog is
         // already open - it just returns true without side-effects
-        if (!this.open(global.get_current_time())) {
+        if (!this.open()) {
             // This can fail if e.g. unable to get input grab
             //
             // In an ideal world this wouldn't happen (because the
index 6f5aadd7cdb564936c66d384e7b065958554ffa7..15bfc6f9e075abdf96a3cdae96c4c62aaba52e67 100644 (file)
@@ -708,7 +708,7 @@ class EndSessionDialog extends ModalDialog.ModalDialog {
     }
 
     async OpenAsync(parameters, invocation) {
-        let [type, timestamp, totalSecondsToStayOpen, inhibitorObjectPaths] = parameters;
+        let [type, timestamp_, totalSecondsToStayOpen, inhibitorObjectPaths] = parameters;
         this._totalSecondsToStayOpen = totalSecondsToStayOpen;
         this._type = type;
 
@@ -774,7 +774,7 @@ class EndSessionDialog extends ModalDialog.ModalDialog {
 
         this._updateButtons();
 
-        if (!this.open(timestamp)) {
+        if (!this.open()) {
             invocation.return_error_literal(
                 ModalDialogError.GRAB_FAILED,
                 'Cannot grab pointer and keyboard');
index 33f168ce6ca5a0a807f63625f2dfc4c654519afc..0366c5dfa803f862f86bba29c19cdb53cdd1fb68 100644 (file)
@@ -66,7 +66,7 @@ export async function installExtension(uuid, invocation) {
     }
 
     const dialog = new InstallExtensionDialog(uuid, info, invocation);
-    dialog.open(global.get_current_time());
+    dialog.open();
 }
 
 /**
index cab7f85c0ad12648ecf93516c9d0c1c149053e7b..34cda9364f84ab12c2cc9b7fb0c1d323192715ea 100644 (file)
@@ -171,7 +171,7 @@ export const ModalDialog = GObject.registerClass({
             () => (this._initialKeyFocus = null), this);
     }
 
-    open(_timestamp) {
+    open() {
         if (this.state === State.OPENED || this.state === State.OPENING)
             return true;